﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="false" CodeBehind="OrderList.aspx.vb" Inherits="ACompany.OrderProcessing.UI.MVCWeb.OrderList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<%  Using Html.BeginForm()%>
<h2>Orders</h2>
Order types: <%=Html.DropDownList("OrderStatus", ViewData("OrderStatus"))%>  <input type="submit" value="Display" />
<ul>
    <% For Each Order As ACompany.OrderProcessing.Model.Order In ViewData.Model%>
            
            <li><%=Order.OrderDate%> <%=Html.ActionLink(Order.Customer.Name, "Details", New With {.id = Order.Id.ToString})%></li>
            
    <% Next%>
       
</ul>
<% End Using %>

<%=Html.ActionLink("Create an Order", "Add")%>

</asp:Content>
